﻿using VirginiaEncryption.Models;

namespace VirginiaEncryption
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚加密法测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和秘钥
            Console.WriteLine("Please input your plaintext:");
            string plain=Console.ReadLine();
            Console.WriteLine("Please input your keytext:");
            string key = Console.ReadLine();
            //加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.PlainText = plain;
            myEncoder.KeyText = key;
            //输出密文
            myEncoder.Encode();
            Console.WriteLine($"Your cyphertext is {myEncoder.CypherText}");
            Console.ReadKey();
        }
    }
}